home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / MAKEFILE.MPW < prev    next >
Text File  |  1989-11-19  |  4KB  |  156 lines

  1. # This is the Makefile to generate byacc using MPW C 2.0.2.
  2. #
  3. # Earle R. Horton
  4. # Sunday, November 19, 1989
  5. #
  6.  
  7. PARSER    = byaccpar
  8. DEST          = :
  9.  
  10. c = {MPW}TOOLS:C
  11.  
  12. .c.o    ─    .c
  13.     {C} {default}.c -o {default}.c.o {CFLAGS} -s {Default}
  14.  
  15. CFLAGS = -g -dMPWC
  16.  
  17. HDRS          = action.h ╢
  18.         defs.h ╢
  19.         dep.h ╢
  20.         files.h ╢
  21.         gram.h ╢
  22.         new.h ╢
  23.         state.h ╢
  24.         symtab.h ╢
  25.         text.h ╢
  26.         tokens.h
  27.  
  28. LDFLAGS         = -d -c 'MPS ' -t MPST -sg Sys=Main,STDIO,INTENV,new,error,files,main ╢
  29.     -sg yacc=closure,conflict,derives,genstate,lalr,main,mkpar,nullable,optim,output,print,reader,symtab,text,warshall,yylex ╢
  30.     -ra Sys=resProtected -ra yacc=resProtected
  31.  
  32. LIBS          = ╢
  33.         "{CLibraries}stubs.c.o" ╢
  34.         "{CLibraries}"CRuntime.o ╢
  35.         "{CLibraries}"StdCLib.o ╢
  36.         "{CLibraries}"CInterface.o ╢
  37.         "{Libraries}"Interface.o
  38.  
  39.  
  40. LINKER          = link
  41.  
  42. MAKEFILE      = Makefile
  43.  
  44. OBJS          = closure.c.o ╢
  45.         conflicts.c.o ╢
  46.         derives.c.o ╢
  47.         error.c.o ╢
  48.         files.c.o ╢
  49.         genstates.c.o ╢
  50.         gram.c.o ╢
  51.         lalr.c.o ╢
  52.         main.c.o ╢
  53.         mkpar.c.o ╢
  54.         new.c.o ╢
  55.         nullable.c.o ╢
  56.         optim.c.o ╢
  57.         output.c.o ╢
  58.         print.c.o ╢
  59.         reader.c.o ╢
  60.         symtab.c.o ╢
  61.         text.c.o ╢
  62.         warshall.c.o ╢
  63.         yylex.c.o
  64.  
  65. PRINT          = print
  66.  
  67. PROGRAM          = byacc
  68.  
  69. SRCS          = closure.c ╢
  70.         conflicts.c ╢
  71.         derives.c ╢
  72.         error.c ╢
  73.         files.c ╢
  74.         genstates.c ╢
  75.         gram.c ╢
  76.         lalr.c ╢
  77.         main.c ╢
  78.         mkpar.c ╢
  79.         new.c ╢
  80.         nullable.c ╢
  81.         optim.c ╢
  82.         output.c ╢
  83.         print.c ╢
  84.         reader.c ╢
  85.         symtab.c ╢
  86.         text.c ╢
  87.         warshall.c ╢
  88.         yylex.c
  89.  
  90. all    ─        {PROGRAM}
  91.  
  92. {PROGRAM}    ─     {OBJS} {PARSER}
  93.         echo -n "Loading {PROGRAM} ... "
  94.         delete -i {PROGRAM}
  95.         {LINKER} {LDFLAGS} {OBJS} {LIBS} -o {PROGRAM}
  96.         catenate {PARSER} >> {PROGRAM}
  97.         setfile {PROGRAM} -t MPST -c 'MPS '
  98.         echo "done"
  99.  
  100. clean    ─
  101.         delete -i {OBJS}
  102.  
  103. depend    ─;    @mkmf -f {MAKEFILE} PROGRAM={PROGRAM} DEST={DEST}
  104.  
  105. index    ─
  106.         ctags -wx {HDRS} {SRCS}
  107.  
  108. install    ─    {PROGRAM}
  109.         echo Installing {PROGRAM} in {DEST}
  110.         @install -s {PROGRAM} {DEST}
  111.  
  112. listing    ─
  113.     {PRINT} Makefile {HDRS} {SRCS} byaccpar | lpr
  114.  
  115. lint    ─        
  116.     lint {SRCS}
  117.  
  118. program    ─        {PROGRAM}
  119.  
  120. tags    ─           {HDRS} {SRCS}
  121.     ctags -t {HDRS} {SRCS}
  122.  
  123. update    ─        {DEST}{PROGRAM}
  124.  
  125. {DEST}{PROGRAM}    ─ {SRCS} {LIBS} {HDRS}
  126.         @make -f {MAKEFILE} DEST={DEST} install
  127. ###
  128. closure.c.o    ─ {include}stdio.h defs.h dep.h new.h gram.h
  129. conflicts.c.o    ─ {include}stdio.h defs.h dep.h new.h files.h gram.h state.h
  130. derives.c.o    ─ {include}stdio.h defs.h new.h gram.h
  131. error.c.o    ─ {include}stdio.h {include}signal.h ╢
  132.     defs.h files.h text.h symtab.h
  133. files.c.o    ─ {include}stdio.h {include}files.h files.h new.h defs.h
  134. genstates.c.o    ─ {include}stdio.h defs.h dep.h new.h gram.h state.h
  135. getargs.c.o    ─ {include}stdio.h defs.h files.h
  136. lalr.c.o    ─ {include}stdio.h defs.h dep.h gram.h new.h state.h
  137. main.c.o    ─ {include}stdio.h {include}signal.h ╢
  138.     dep.h files.h state.h symtab.h tokens.h ╢
  139.     text.h defs.h
  140. mkpar.c.o    ─ {include}stdio.h action.h defs.h dep.h files.h gram.h new.h ╢
  141.     state.h tokens.h text.h symtab.h
  142. new.c.o    ─ defs.h
  143. nullable.c.o    ─ {include}stdio.h gram.h new.h defs.h
  144. optim.c.o    ─ {include}stdio.h defs.h dep.h gram.h new.h state.h
  145. output.c.o    ─ {include}stdio.h action.h defs.h dep.h new.h files.h gram.h ╢
  146.     state.h
  147. print.c.o    ─ {include}stdio.h action.h defs.h dep.h new.h files.h gram.h ╢
  148.     state.h
  149. reader.c.o    ─ {include}stdio.h defs.h dep.h files.h gram.h new.h symtab.h ╢
  150.     text.h tokens.h
  151. symtab.c.o    ─ {include}stdio.h defs.h new.h symtab.h tokens.h text.h
  152. text.c.o    ─ {include}stdio.h files.h new.h text.h defs.h
  153. warshall.c.o    ─ dep.h defs.h
  154. yylex.c.o    ─ {include}stdio.h defs.h dep.h files.h new.h symtab.h text.h ╢
  155.     tokens.h
  156.